<h3>权限列表</h3>
<div class="mainmsg">
    <table border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <thead>
            <tr>
                <th> Controller
                </th>
     			<th> 描述
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            <?php 
            foreach ($actionlist as $v):

            ?>
            <form action="/taction/setdesc" method="POST">
            <tr>
                <td align="left">
                    <?php echo $v['Taction']['f_action']; ?>                     
                </td>
                  <td align="left">
                              <input name="fdesc" type="text" style="width:150px;"  value="<?php echo $v['Taction']['f_desc']; ?>"/>
                              <input name="id" type="hidden" value="<?php echo $v['Taction']['id']; ?>" />                                         
                </td>                
      
                <td align="left">
                    <button type="button" onclick="window.location='/Taction/delaction/<?php echo $v['Taction']['id']; ?>';">
                        删除
                    </button>  
                     <button type="submit"  >
                        保存
                    </button> 
                          
                </td>
            </tr>
            </form>
            <?php 
            endforeach;
            ?>
        </tbody>
    </table> 
        <center>
        <?php 
        echo $paginator->first('首页').' ';
        echo $paginator->prev('<< 前页').' ';
        echo $paginator->numbers(array('separator'=>'   '));
        echo ' '.$paginator->next('后页 >>');
        echo ' '.$paginator->last("末页");
        ?>
        <br>
        <?php 
        echo $paginator->counter(array('format'=>'目前在第 %page% 页 / 总共 %pages% 页, 每页 %current% 条记录， 总共 %count% 条, 目前是第 %start% 至 %end% 条记录'));
        ?>
    </center>
</div>
 